package com.team7.order.controller;

import com.team7.order.service.VideoService;
import com.team7.order.utils.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@Api(tags = "视频模块")
@RestController
@RequestMapping("/order/video")
public class VideoController {
    @Resource
    private VideoService videoService;
    @ApiOperation(value = "查看视频链接")
    @PostMapping("/queryAllVideoByCourseId/{id}")
    public CommonResult queryAllVideoByCourseId(@PathVariable("id") @RequestBody String id){
        CommonResult commonResult = videoService.queryAllVideoByCourseId(id);
        return new CommonResult(2000,"成功",commonResult);
    }
}
